package com.bdqn.Practice.service;

import com.bdqn.Practice.mapper.SysRoleMapper;
import com.bdqn.Practice.pojo.SysRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("SysRoleService")
public class SysRoleServiceImpl implements SysRoleService{
    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> roleName() {
        return sysRoleMapper.roleName();
    }

    @Override
    public List<SysRole> roleList(Integer pageNo, Integer pageSize) {
        return sysRoleMapper.roleList((pageNo-1)*pageSize,pageSize);
    }

    @Override
    public int count() {
        return sysRoleMapper.count();
    }
}
